﻿<%@ Page Language="C#" MasterPageFile="~/master/AdminLayout.master" AutoEventWireup="true" CodeFile="productcategorydetail.aspx.cs" Inherits="page_private_admin_productcategorydetail" Title="Untitled Page" %>
<%@ Register Src="~/control/common/EmptyGridMessage.ascx" TagPrefix="ucc" TagName="EmptyGridMessage" %>
<%@ Register Assembly="App_Code" Namespace="Pheonix.Fashionzoomer.UI" TagPrefix="ucc" %>

<asp:Content ID="workArea" ContentPlaceHolderID="WorkArea" Runat="Server">
    <table style="margin-left:auto; margin-right:auto;">
        <tr>
            <td>
                <ucc:ResponseMessage ID="uccResponseMessage" runat="server" ></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td>
                <br />
                <asp:ValidationSummary ID="vlsShopDetail" runat="server" DisplayMode="BulletList" 
                    HeaderText="Please correct the following errors" CssClass="adminValidator"/>
                <br />
            </td>
        </tr>
        <tr>
            <td>
                <h5><asp:Label ID="lblTitle" runat="server"></asp:Label></h5>
            </td>
        </tr>
        <tr>
            <td align="left" valign="middle">
               <table cellspacing="10">
                    <tr>
                        <td class="adminTitleText">Category Name</td>
                        <td>
                            <asp:TextBox ID="tbxCategoryName" runat="server" CssClass="adminTextBox" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rqvCategoryName" runat="server" Display="Dynamic"
                                ErrorMessage="Category name is required" Text="*" ControlToValidate="tbxCategoryName"
                                 SetFocusOnError="true">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Parent Category</td>
                        <td>
                            <asp:DropDownList ID="ddlParentCategory" runat="server" AppendDataBoundItems="true" >
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rqvCategoryId" runat="server" Display="dynamic"
                                ErrorMessage="Please Select a Category" ControlToValidate="ddlParentCategory" 
                                InitialValue="-1" Text="*">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="adminTitleText">Category Image</td>
                        <td>
                            <asp:Image ID="imgCategoryImage" runat="server" AlternateText="Category Image"  /><br /><br />
                            <asp:FileUpload ID="fluCategoryImage" runat="server" Width="350px" size="40px;"	 />
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>
                            <asp:ImageButton ID="btnBack" runat="server" Text="Back" OnClick="Back_Click" CausesValidation="false" SkinID="FormBackButton" />
                            &nbsp;&nbsp;
                            <asp:ImageButton ID="btnSave" runat="server" Text="Save" OnClick="Save_Click" SkinID="FormSaveButton" />
                        </td>
                    </tr>
               </table>
            </td>
        </tr>
    </table>  
</asp:Content>

